package edu.zju.gis.dldsj.model;

import lombok.Getter;
import lombok.Setter;

import java.time.Instant;
import java.util.Date;

@Getter
@Setter
public class BdStreetView implements Jsonable {
    private String pk_id;
    private String pano_picture_name;
    private String pano_id;
    private Integer is_pano;
    private Double baidu_x;
    private Double baidu_y;
    private Double lon_wgs1984;
    private Double lat_wgs1984;
    private String street_name;
    private Date observe_date;
    private Double heading;
    private Double pitch;
    private Double fov;
    private String geoid;
    private String geoinfo;
    private String address_info;

    @Override
    public String id() {
        return pk_id;
    }

    /***
     * 设置默认值
     */
    public void setDefaultValue() {
        this.is_pano = 0;
        this.baidu_x = 0.0;
        this.baidu_y = 0.0;
        this.lon_wgs1984 = 0.0;
        this.lat_wgs1984 = 0.0;
        this.street_name = "Unknown";
        this.observe_date = Date.from(Instant.now());
        this.heading = 0.0;
        this.pitch = 0.0;
        this.fov = 0.0;
        this.geoid = "Unknown";
        this.geoinfo = "Unknown";
        this.address_info = "Unknown";
    }
}